package cn.fengwoo.springBoot.exception;

import cn.fengwoo.springBoot.enums.ResultEnum;

/**
 * Created by fangdaji on 2018/1/10.
 */
public class FengwooException extends RuntimeException{

    private ResultEnum resultEnum;

    public FengwooException(ResultEnum resultEnum) {
        super(resultEnum.getMsg());
        this.resultEnum = resultEnum;
    }

    public ResultEnum getResultEnum() {
        return resultEnum;
    }

    public void setResultEnum(ResultEnum resultEnum) {
        this.resultEnum = resultEnum;
    }
}
